package MyQueue;

import java.util.*;

public class QueueDemo {


    public static void main(String[] args) {
        Queue <Integer> queue=new LinkedList<>();

    }
    public static void main2(String[] args) {
        MycircularQueue mycircularQueue=new MycircularQueue(3);
        mycircularQueue.enQueue(0);
        mycircularQueue.enQueue(1);
        mycircularQueue.deQueue();
        Deque<Integer> deque=new ArrayDeque<>();
    }
    public static void main1(String[] args) {
        MyQueue myQueue=new MyQueue();
        myQueue.offer(1);
        myQueue.offer(2);
        myQueue.offer(3);
        myQueue.offer(4);
        myQueue.offer(5);
        myQueue.offer(6);

        myQueue.display();

        System.out.println();
        myQueue.poll();
        myQueue.poll();
        myQueue.poll();
        myQueue.display();

        System.out.println();
        System.out.println(myQueue.peek());
    }
}
